/*
 * @Author: your name
 * @Date: 2021-09-12 11:33:11
 * @LastEditTime: 2021-11-22 10:57:58
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /gitee-project/whale-admin-web/src/main.ts
 */
import { createApp } from 'vue'
import ElementPlus from 'element-plus'
// 如果您正在使用CDN引入，请删除下面一行。


import { baidu } from './utils/system/statistics'
import 'element-plus/lib/theme-chalk/index.css'
import 'element-plus/lib/theme-chalk/display.css' // 引入基于断点的隐藏类
import 'normalize.css' // css初始化
import './assets/style/common.scss' // 公共css
import './theme/modules/chinese/index.scss'
import 'hover.css/css/hover.css' // css的hover动画
import 'font-awesome/css/font-awesome.min.css' // 字体图标
import App from './App.vue'
import store from './store'
import router from './router'
import i18n from './locale'
import 'default-passive-events' // 添加事件管理者'passive'，来阻止'touchstart'事件，让页面更加流畅。 解决chrome下的warning问题
// import OSS from "ali-oss";
// const OSS = require("ali-oss");
if (import.meta.env.MODE !== 'development') { // 非开发环境调用百度统计
  baidu()
}
const app = createApp(App)
app.use(ElementPlus, { size: store.state.app.elementSize })
app.use(store)
app.use(router)
app.use(i18n)
// app.config.performance = true
app.mount('#app')